package com.skymxc.demo.explorer.core;

import com.skymxc.demo.explorer.R;

/**
 * Created by sky-mxc
 * 文件排序类型
 */

public enum  SortType {
    NAME,DATE,SIZE,FILETYPE;
    public static SortType parse(int sortType){
        SortType type=null;
        switch (sortType){
            case R.id.order_name:
                type= NAME;
                break;
            case R.id.order_date:
                type= DATE;
                break;
            case R.id.order_size:
                type= SIZE;
                break;
            case R.id.order_type:
                type= FILETYPE;
                break;
        }
        return type;
    }
}
